<?php
namespace system\service;

use system\service\interfaces\ISystemOptLogService;
use common\service\CommonService;
use herosphp\core\Loader;

Loader::import('system.service.interfaces.ISystemOptLogService');

/**
 * system(Service)接口实现
 * @package system\service
 * @author yangjian<yangjian102621@gmail.com>
 */
class SystemOptLogService extends CommonService implements ISystemOptLogService {
    public function getItems($conditions, $fields, $order, $limit, $group, $having)
    {
        $items = parent::getItems($conditions, $fields, $order, $limit, $group, $having);
        //初始化一些信息
        $opttypeArr = LANG('SYS_LOG_OPTYPE');
        foreach ( $items as $key => $value ) {
            $items[$key]['opttype'] = $opttypeArr[$value['method']];
        }
        return $items;
    }
}
